﻿package {
	
	// flash.display.*;
	//import flash.events.*;
	
	//import lt.uza.utils.*;
	
	public class Gene extends Object {
		//VARS
		
		//private var global:Global = Global.getInstance();
		
		
		public var dominance:Boolean=new Boolean();
		public var name:String=new String();
		
		var r:uint = 100+Math.random()*155
		var g:uint = 100+Math.random()*155
		var B:uint = 100+Math.random()*155

		public function Gene(n:String="A",d:Boolean=true):void{
			
			//INIT
			name=n;
			dominance=d;
			if (d){
				name=name.toLocaleUpperCase();
			}else{
				name=name.toLocaleLowerCase();
			}
			
		}
		
		//getter
		/*override public function get name():String{
			return char;
		}
		
		public function dominance():Boolean{
			return dom;
		}*/
				
	}
}